package com.lzy.product.apis.impl;

import com.lzy.product.apis.OrderYieldRatioServiceApi;
import com.lzy.product.dtos.OrderYieldRatioDto;
import com.lzy.product.service.OrderYieldRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderYieldRatioServiceApiImpl implements OrderYieldRatioServiceApi {
    @Autowired
    OrderYieldRatioService orderYieldRatioService;

    @Override
    public Boolean createOrderYieldRatio(OrderYieldRatioDto dto) {
        return orderYieldRatioService.createOrderYieldRatio(dto);
    }

    @Override
    public OrderYieldRatioDto findOrderYieldRatioByOrderId(Long orderId) {
        return orderYieldRatioService.findOrderYieldRatioByOrderId(orderId);
    }

    @Override
    public Boolean updateOrderYieldRatio(OrderYieldRatioDto dto) {
        return orderYieldRatioService.updateOrderYieldRatio(dto);
    }

    @Override
    public List<OrderYieldRatioDto> queryAvailList(String date) {
        return orderYieldRatioService.queryAvailList(date);
    }

    @Override
    public Integer updateBackedStatus(String date) {
        return orderYieldRatioService.updateBackedStatus(date);
    }

    @Override
    public Integer updateStartStatus(String date) {
        return orderYieldRatioService.updateStartStatus(date);
    }

}
